//
//  JddQueryLastestTenIssueID.m
//  PlayBall
//
//  Created by Rainy on 14-7-31.
//
//

#import "JddQueryLastestTenIssueID.h"

@implementation JddQueryLastestTenIssueID
- (void)main{
    @autoreleasepool {
        JddNetDataCommunication *netDataCommunication = [[JddNetDataCommunication alloc] init];
        NSString *bodyString = [JddParameterBuilder queryLastestTenIssueID:self.LotId];
        // modify by rainy
//        NSData *dataAd = [netDataCommunication requestDataByPostBodyData:[bodyString dataUsingEncoding:NSUTF8StringEncoding]];
        NSData *dataAd = [netDataCommunication requestDataByPostUrl:BASE_SERVER_HOST_ORGJDD bodyData:[bodyString dataUsingEncoding:NSUTF8StringEncoding]];
        [((NSObject*)self.delegate) performSelectorOnMainThread:@selector(JddQueryLastestTenIssueIDResult:) withObject:dataAd waitUntilDone:NO];
    }
}
@end
